import request from "@/utils/axios";
import {LoginData, LoginResponse} from "./types"
import type { AxiosResponse } from "axios";

/**
 * 接口集合
 * @method login 登录
 */
export default {
	// 用户登录
	login(data: LoginData): Promise<AxiosResponse<LoginResponse>> {
	  return request({
		url: '/api/ssoUser/login',
		method: 'post',
		data
	  })
	},
}